import Vuex from 'vuex'

import system from './modules/system'
import material from './modules/material'
import business from './modules/business'
import knowledge from './modules/knowledge'
import report from './modules/report'
import study from './modules/study'
import exam from './modules/exam'
import course from './modules/course'
import typing from './modules/typing'

const debug = process.env.NODE_ENV !== 'production'
const store = new Vuex.Store({
    strict: debug,
    modules: {
        ...course,
        ...system,
        ...material,
        ...business,
        ...knowledge,
        ...report,
        ...study,
        ...exam,
        ...typing
    }
})

export default store
